const { DataTypes } = require('sequelize');
const sequelize = require('../../../../mysql/init');
const userInfoModule = sequelize.define('userInfo',{
    user_id:{
        type:DataTypes.INTEGER,
        primaryKey:true,
        autoIncrement:true
    },
    user_name:{
        type:DataTypes.STRING,
        allowNull:false,
        defaultValue:'游客'
    },
    user_avatar:{
        type:DataTypes.STRING,
        allowNull:true,
        defaultValue:'https://cirno-1308416229.cos.ap-chengdu.myqcloud.com/user_avatar/1858051440458420226/gwKB6rMW-123949214_p0.jpg'
    },
    user_qq_number:{
        type:DataTypes.INTEGER,
        allowNull:false,
        defaultValue:0
    },
},{
    timestamps:true,
    createdAt:'register_time',
    updatedAt:'login_time',
    freezeTableName:true
});
module.exports = userInfoModule